package com.csweimei.rentmanagementtreasure.http.entity;

import android.view.View;

import com.csweimei.rentmanagementtreasure.utils.ValidateUtils;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class HouseFollowRecordBean extends BaseResult{
    @SerializedName("data")
    private List<DataDTO> data;

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO {
        @SerializedName("id")
        private int id;
        @SerializedName("userid")
        private int userid;
        @SerializedName("FollowTime")
        private String followTime;
        @SerializedName("FollowInfo")
        private String followInfo;
        @SerializedName("FollowImg")
        private String followImg;
        @SerializedName("customID")
        private int customID;
        @SerializedName("customeImg")
        private String customeImg;
        @SerializedName("customName")
        private String customName;
        @SerializedName("sex")
        private String sex;
        @SerializedName("phone")
        private String phone;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getUserid() {
            return userid;
        }

        public void setUserid(int userid) {
            this.userid = userid;
        }

        public String getFollowTime() {
            return ValidateUtils.getTimeForm(followTime);
        }

        public void setFollowTime(String followTime) {
            this.followTime = followTime;
        }

        public String getFollowInfo() {
            return followInfo;
        }

        public void setFollowInfo(String followInfo) {
            this.followInfo = followInfo;
        }

        public String getFollowImg() {
            return followImg;
        }

        public void setFollowImg(String followImg) {
            this.followImg = followImg;
        }

        public int getCustomID() {
            return customID;

        }

        public int showCustom(){
            if (customID != 0){
                return View.VISIBLE;
            }else {
                return View.GONE;
            }
        }

        public void setCustomID(int customID) {
            this.customID = customID;
        }

        public String getCustomeImg() {
            return customeImg;
        }

        public void setCustomeImg(String customeImg) {
            this.customeImg = customeImg;
        }

        public String getCustomName() {
            if (customName.length() > 0){
                return customName.substring(0,1)+"老板";
            }else {
                return customName;
            }
        }

        public void setCustomName(String customName) {
            this.customName = customName;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }
    }
}
